﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using VMDS.GUIClient.Helper;

namespace VMDS.GUIClient.ViewModels
{
    class ManagementConsoleViewModel : BaseViewModel
    {
        private const string ClientsLink = "/VMDS.GUIClient;component/Views/Management/ClientsManagement.xaml";
        private const string OsLink = "/VMDS.GUIClient;component/Views/Management/OsManagement.xaml";
        private const string StorageLink = "/VMDS.GUIClient;component/Views/Management/StorageManagement.xaml";
        private const string TaskLink = "/VMDS.GUIClient;component/Views/Management/TaskManagement.xaml";
        private const string VmLink = "/VMDS.GUIClient;component/Views/Management/VmManagement.xaml";

        private string _navLink;
        public string NavigationLink
        {
            get { return _navLink; }
            set { _navLink = value;OnPropertyChanged(()=>NavigationLink); }
        }
        public ICommand GoToClients { get { return new BaseCommand(() => { NavigationLink = ClientsLink; }); } }
        public ICommand GoToOs { get { return new BaseCommand(() => { NavigationLink = OsLink; }); } }
        public ICommand GoToStorage { get { return new BaseCommand(() => { NavigationLink = StorageLink; }); } }
        public ICommand GoToTask { get { return new BaseCommand(() => { NavigationLink = TaskLink; }); } }
        public ICommand GoToVm { get { return new BaseCommand(() => { NavigationLink = VmLink; }); } }

        public ManagementConsoleViewModel()
        {
            NavigationLink = StorageLink;
        }

    }
}
